#include "../lib/Case.hpp"
#include <iostream>
#include <cassert>

using namespace std;

void Affecte_Case ( Case & A,const TYPE_case T)
{
    A = T;
}

void Affecte_Case_Mer ( Case & C)
{
    Affecte_Case ( C, mer);
}

void Affecte_Case_Prairie ( Case & C)
{
    Affecte_Case( C, prairie);
}


TYPE_case Retourne_Type_Case ( const Case & A)
{
    return A;
}

void Affiche_Case ( const Case & A)
{
    TYPE_case c;
    c = Retourne_Type_Case( A);
    if ( c == prairie)
        cout << "Prairie"<<endl;
    else if ( c == mer)
        cout << "Mer" <<endl;
    else
        cout << "Non initialise"<<endl;
}

void Affiche_Case_Char ( const Case & A)
{
    TYPE_case C;
    C = Retourne_Type_Case(A);
    if ( C == prairie)
        cout << "_";
    else if ( C == mer)
        cout << "~" ;
    else
        cout << "?";
}
